package org.csmzxy.class2333;

public class pra01 {
    public static void main(String[] args){
        int a[] = {4,-1,9,10,23};
        int max = a[0];
        int maxindex = 0;
        for (int i = 0; i < 5; i++){
            if(a[i] > max){
                max = a[i];
                maxindex = i;
            }

        }
        System.out.println(max);
        System.out.println(maxindex);
    }
}
